<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp" %>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<title>注册 - 用户中心</title>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport"
			content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
		<%@ include file="/common/include/userTitle.jsp" %>
		<script type="text/javascript">
			
			$(function()
					{
					var url1 = "/stu-ques-web/";	
					$("#confirmPassword").blur(function(){
						console.info("我是去交点了")
					});
					$("#email").blur(function()
							{
								var email  = $(this).val();
								console.info("我执行了,我是验证邮箱的")
								$.ajax({
									type:"GET",
									url:url1+"NoLoginBackServlet?method=isEmail&email="+email,
									success:function(data)
									{
										console.info("nihaohaaaaa")
										$("#confirmEmail").html(data);
									},
									"dataType":"text"
								});
							}); 
					/* 确认密码 */
					$("#confirmPassword").blur(function()
							{
								var pwd  = $(this).val();
								var pwd1 = $("#password").val();
								console.info("我执行了")
								$.ajax({
									type:"GET",
									url:url1+"NoLoginBackServlet?method=isPassword&p1="+pwd+"&p2="+pwd1,
									success:function(data)
									{
										console.info("nihaohaaaaa")
										$("#pwdStr").html(data);
									},
									"dataType":"text"
								});
							});
			});
		</script>
	</head>
	<body>
		<!-- 网页头部开始 -->
		<nav class="navbar navbar-default navbar-fixed-top">
			<div class="container-fluid">
				<div class="navbar-header">
					<button type="button" class="navbar-toggle collapsed"
						data-toggle="collapse" data-target="#navbar" aria-expanded="false"
						aria-controls="navbar">
						<span class="sr-only">Toggle navigation</span> <span
							class="icon-bar"></span> <span class="icon-bar"></span> <span
							class="icon-bar"></span>
					</button>
					<a class="navbar-brand" href="#">LOGO</a>
				</div>
				<div id="navbar" class="navbar-collapse collapse">
					<ul class="nav navbar-nav navbar-right">
						<li><a href="#">首页</a></li>
						<li><a href="login.html">登陆</a></li>
						<li><a href="regsiter.html">注册</a></li>
					</ul>
					<form class="navbar-form navbar-right visible-sm">
						<input type="text" class="form-control" placeholder="Search...">
					</form>
				</div>
			</div>
		</nav>
		<div class="container">
			<div class="col-sm-8 col-sm-offset-1">
				<form id="form" class="form-horizontal" method="post"
					action="/usersCenter-head/regsiterSubmit.html">
					<h2 class="col-sm-offset-1 form-signin-heading">注册</h2>
					<div class="form-group">
						<label for="email" class="col-sm-2 control-label">邮箱</label>
						<div class="col-sm-8">
							<input type="text" name="email" id="email" value=""
								class="form-control" placeholder="邮箱">
						</div>
						<span id="confirmEmail"></span>
					</div>
					<div class="form-group">
						<label for="password" class="col-sm-2 control-label">密码</label>
						<div class="col-sm-8">
							<input type="password" name="password" id="password"
								class="form-control" placeholder="密码" />
						</div>
					</div>
					<div class="form-group">
						<label for="confirmPassword" class="col-sm-2 control-label">确认密码</label>
						<div class="col-sm-8">
							<input type="password" name="confirmPassword" id="confirmPassword"
								class="form-control" placeholder="确认密码" />			
						</div>
						<span id="pwdStr" ></span>
					</div>
					<div class="form-group">
						<label for="code" class="col-sm-2 control-label">验证码</label>
						<div class="col-sm-8">
							<div class="input-group">
								<span class="input-group-addon"> <a href="#" tabindex="-1"
									onclick="return refreshCode('imgCode');"> <img id="imgCode"
										src="/usersCenter-head/imgCode.html" title="点击刷新验证码" width="75"
										height="20" />
								</a>
								</span> <input type="text" name="code" id="code" class="form-control"
									placeholder="验证码">
							</div>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-8 col-sm-offset-2">
							<button class="btn btn-lg btn-primary" type="submit">注册</button>
							<a href="login.html"
								class="btn btn-lg btn-primary">登陆</a>
						</div>
					</div>
				</form>
			</div>
		</div>
	
	
		<!-- 提示信息 -->
		<div class="container">
			<div class="col-sm-8 col-sm-offset-1"></div>
		</div>
	
		<footer class="footer ">
			<div class="container">
				<div class="row footer-top">
					<div class="col-sm-6 col-lg-6">
						<h4>
							<!-- <img src="http://static.bootcss.com/www/assets/img/logo.png"> -->
						</h4>
						<p>
							本网站所列开源项目的中文版文档全部由<a href="#">用户中心</a>顶力开发 <a href="#"
								target="_blank">CC BY 3.0</a>协议发布。
						</p>
					</div>
					<div class="col-sm-6  col-lg-5 col-lg-offset-1">
						<div class="row about">
							<div class="col-xs-3">
								<h4>关于</h4>
								<ul class="list-unstyled">
									<li><a href="#">关于我们</a></li>
									<li><a href="#">广告合作</a></li>
									<li><a href="#">友情链接</a></li>
									<li><a href="#">招聘</a></li>
								</ul>
							</div>
							<div class="col-xs-3">
								<h4>联系方式</h4>
								<ul class="list-unstyled">
									<li><a href="#" title="#" target="_blank">新浪微博</a></li>
									<li><a href="#">电子邮件</a></li>
								</ul>
							</div>
							<div class="col-xs-3">
								<h4>旗下网站</h4>
								<ul class="list-unstyled">
									<li><a href="#" target="_blank">Laravel中文网</a></li>
									<li><a href="#" target="_blank">Ghost中国</a></li>
								</ul>
							</div>
							<div class="col-xs-3">
								<h4>赞助商</h4>
								<ul class="list-unstyled">
									<li><a href="#" target="_blank">UCloud</a></li>
									<li><a href="#" target="_blank">又拍云</a></li>
								</ul>
							</div>
						</div>
	
					</div>
				</div>
				<hr>
				<div class="row footer-bottom">
					<ul class="list-inline text-center">
						<li><a href="#" target="_blank">京ICP备11008151号</a></li>
						<li>京公网安备11010802014853</li>
					</ul>
				</div>
			</div>
		</footer>
	</body>
</html>